package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class TopicCategoryBase{
	boolean[] modified=new boolean[3];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public TopicCategoryBase(){}
	public TopicCategoryBase(java.lang.Long topicId,java.lang.Long categoryId,java.lang.Long index){
		setTopicId(topicId);
		setCategoryId(categoryId);
		setIndex(index);
	}
	public void setTopicId(java.lang.Long topicId){
		if(topicId!=null) {
			set("topicId",topicId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getTopicId(){
		return (java.lang.Long)get("topicId");
	}
	public void setCategoryId(java.lang.Long categoryId){
		if(categoryId!=null) {
			set("categoryId",categoryId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getCategoryId(){
		return (java.lang.Long)get("categoryId");
	}
	public void setIndex(java.lang.Long index){
		if(index!=null) {
			set("index",index);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getIndex(){
		return (java.lang.Long)get("index");
	}
}
